﻿@{
    Layout = null;
    }
@model XtraReport
           <!DOCTYPE html>

<html>
<head>
    <title>打印预览</title>
     @if (false)
    {
        <script src="../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>
  

    @Html.DevExpress().GetStyleSheets(
     new StyleSheet { ExtensionType = ExtensionType.ReportToolbar, Theme = DevExpressHelper.Theme },
                new StyleSheet { ExtensionType = ExtensionType.ReportViewer, Theme = DevExpressHelper.Theme }


)
    @Html.DevExpress().GetScripts(
             new Script { ExtensionType = ExtensionType.ListBox },
                    new Script { ExtensionType = ExtensionType.ReportViewer },
                             new Script { ExtensionType = ExtensionType.ReportToolbar }

    )
    <script type="text/javascript">

        function OnBeginCallback(s, e) {
            window.dialogArguments.OnBeginCallback(s, e);
//             var   NSRMC=    $("#hNSRMC").val();
//   var FFinance= $("#hFFinance").val();
//      var  NSRBM=    $("#hNSRBM").val();
//     var   NSRSBH=     $("#hNSRSBH").val(); 
//      var      FNewEnterprise=                      $("#hFNewEnterprise").val();
//       var  FIssueID=  $("#hFIssueID").val();
//      var  ISPAY=    $("#hISPAY").val();
//      var  FYear=     $("#hFYear").val();
//      var   BTJEA=     $("#hBTJEA").val();
//      var BTJEB=    $("#hBTJEB").val();
//     var   FApplyDate=    $("#hFApplyDate").val();
//     var   LastPayDate=     $("#hLastPayDate").val();
//     var   ISBASE=      $("#hISBASE").val();
//   var  FFileNo=      $("#hFFileNo").val();
//    var    SKSJA=    $("#hSKSJA").val();
//     var  SKSJB =      $("#hSKSJB").val();
//  
//            //            var FNote = $("#hFNote").val();
//            //            var FPayDateBegin = $("#hFPayDateBegin").val();
//            //            var FPayDateEnd = $("#hFPayDateEnd").val();

//     e.customArgs["NSRMC"] = NSRMC;
//     e.customArgs["FFinance"] = FFinance;
//     e.customArgs["NSRBM"] = NSRBM;
//     e.customArgs["NSRSBH"] = NSRSBH;
//     e.customArgs["FNewEnterprise"] = FNewEnterprise;
//     e.customArgs["FIssueID"] = FIssueID;
//     e.customArgs["ISPAY"] = ISPAY;
//     e.customArgs["FYear"] = FYear;
//     if (BTJEA != null && BTJEA != "") 
//     {
//         // e.customArgs["BTJEA"] = parseInt(BTJEA) * 10000;
//         e.customArgs["BTJEA"] = BTJEA;
//     }
// if (BTJEB != null && BTJEB != "") 
//     {
//         //   e.customArgs["BTJEB"] = parseInt(BTJEB) * 10000;
//         e.customArgs["BTJEB"] = BTJEB;
//     }
//     e.customArgs["FApplyDate"] = FApplyDate;
//     e.customArgs["LastPayDate"] = LastPayDate;
//     e.customArgs["ISBASE"] = ISBASE;
//     e.customArgs["FFileNo"] = FFileNo;
//     if (SKSJA != null && SKSJA != "") 
//     {
//         //  e.customArgs["SKSJA"] = parseInt(SKSJA) * 10000;
//         e.customArgs["SKSJA"] = SKSJA;
//     }
//       if (SKSJB!= null && SKSJB != "") 
//     {
//         //  e.customArgs["SKSJB"] = parseInt(SKSJB) * 10000;
//         e.customArgs["SKSJB"] = SKSJB;
//     }
//            //   e.customArgs["FNote"] = FNote;
//            //            e.customArgs["FPayDateBegin"] = FPayDateBegin;
//            //            e.customArgs["FPayDateEnd"] = FPayDateEnd;
//            //  e.customArgs[""] = ;

//            //     alert(1);
        }

        

        
    </script>
</head>
<body>
    @Html.DevExpress().ReportToolbar(settings => {
        // The following settings are necessary for a Report Toolbar. 
        settings.Name = "ReportToolbar";
        settings.ReportViewerName = "reportViewer1";
        settings.Items.AddRange(new ReportToolbarItem[] {
        new ReportToolbarButton { ItemKind = ReportToolbarItemKind.PrintReport,ToolTip="直接打印" },
        new ReportToolbarButton { ItemKind = ReportToolbarItemKind.PrintPage,ToolTip="打印当前页" },
        new ReportToolbarSeparator(),
        new ReportToolbarButton { ItemKind = ReportToolbarItemKind.FirstPage,ToolTip="第一页"  },
        new ReportToolbarButton { ItemKind = ReportToolbarItemKind.PreviousPage,ToolTip="上一页" },
        new ReportToolbarLabel { ItemKind = ReportToolbarItemKind.PageLabel,Text="页码" },
        new ReportToolbarComboBox { ItemKind = ReportToolbarItemKind.PageNumber, 
            Width = 65 },
        new ReportToolbarLabel { ItemKind = ReportToolbarItemKind.OfLabel,Text="~" },
        new ReportToolbarTextBox() { ItemKind = ReportToolbarItemKind.PageCount },
        new ReportToolbarButton { ItemKind = ReportToolbarItemKind.NextPage,ToolTip="下一页" },
        new ReportToolbarButton { ItemKind = ReportToolbarItemKind.LastPage, ToolTip="最后一页"},
        //new ReportToolbarButton { ItemKind = ReportToolbarItemKind.SaveToDisk },
        //new ReportToolbarButton { ItemKind = ReportToolbarItemKind.SaveToWindow },

    });
    }).GetHtml()

  @Html.Partial("ReportViewerPartial")
       @Html.Hidden("hNSRMC", ViewData["NSRMC"])
       @Html.Hidden("hFFinance", ViewData["FFinance"])
        @Html.Hidden("hNSRBM", ViewData["NSRBM"])
         @Html.Hidden("hNSRSBH", ViewData["NSRSBH"])
                              @Html.Hidden("hFNewEnterprise", ViewData["FNewEnterprise"])
       @Html.Hidden("hFIssueID", ViewData["FIssueID"])
        @Html.Hidden("hISPAY", ViewData["ISPAY"])
         @Html.Hidden("hFYear", ViewData["FYear"])
          @Html.Hidden("hBTJEA", ViewData["BTJEA"])
       @Html.Hidden("hBTJEB", ViewData["BTJEB"])
        @Html.Hidden("hFApplyDate", ViewData["FApplyDate"])
         @Html.Hidden("hLastPayDate", ViewData["LastPayDate"])
          @Html.Hidden("hISBASE", ViewData["ISBASE"])
       @Html.Hidden("hFFileNo", ViewData["FFileNo"])
        @Html.Hidden("hSKSJA", ViewData["SKSJA"])
         @Html.Hidden("hSKSJB", ViewData["SKSJB"])
</body>
</html>
